import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import math

df = pd.read_csv("highd/01_tracks.csv",encoding="utf-8")
print(df)
x  = df.iloc[:, 2]
y  = df.iloc[:, 3]
xaccleration = df.iloc[:, 8]
yaccleration = df.iloc[:, 9]
accleration = list(map(lambda x, y: math.sqrt(x**2 + y**2), xaccleration, yaccleration))
plt.scatter(x, y, c=accleration, cmap='viridis', s=1)  # 使用 'viridis' 色彩映射
plt.colorbar(label='Feature Value')  # 添加颜色条，显示特征值的映射
plt.title('Feature Distribution with XY Coordinates')
plt.xlabel('X')
plt.ylabel('Y')
plt.show()

